<link rel="stylesheet" href="../core/resource/weui/weui.css?v=12">
<style>
</style>
<div class='fui-page-group' ng-if="pagedata.op == 'main'">
<div class='fui-page  fui-page-current'>
    <div class="fui-header">
		<div class="fui-header-left" ng-click="goback()">
            <a class="back"></a>
        </div>
		<div class="title">店员中心</div>
		<div class="fui-header-right"></div>
	</div>
	<div class='fui-content member-page navbar'>
		<div class="fui-list-group merchgroup">
			<div class="fui-list jump">
                <a class="fui-list-media">
                    <img class="round" src="{{tomedia(pagedata.worker.headimg) || '../core/resource/images/nopic.jpg'}}" />
                </a>
                <div class="fui-list-inner">
                    <div class="title">{{pagedata.worker.name || '匿名用户'}}</div>
					<div class="title" style="font-size:0.65rem">佣金：{{pagedata.worker.commission || '0.00'}} <a style="margin-left:1rem;color:#f60" href="javascript:;" ng-click="access_json('')"><!--提现--></a></div>
                </div>
				<!--
                <a class="jump" href="javascript:;" ng-click="access_json('jy_meifa/worker_home/set')">
					<i class="icon jinyunicon icon-set" style="width: 2rem; text-align: center;"></i>
				</a>
				-->
            </div>
		</div>
		<div class="weui_cells_title" style="background-color: #fff;"><i class="icon jinyunicon icon-dianpu" style="font-size:0.76rem"></i>我的业绩</div>
		<div class="fui-icon-group noborder col-2" style="background-color: #fff;">
						<div class="fui-icon-col external">
							<div class="badge"></div>
							<div class="icon icon-green radius"><i class="icon jinyunicon icon-caifua"></i></div>
							<div class="text">今日业绩:{{pagedata.today_money||'0.00'}}元</div>
						</div>
						<div class="fui-icon-col external"  href="javascript:;" ng-click="access_json('jy_meifa/worker_order/today/')">
							<div class="badge"></div>
							<div class="icon icon-green radius"><i class="icon jinyunicon icon-quanbudingdan"></i></div>
							<div class="text">今日订单数:{{pagedata.today_num||'0'}}</div>
						</div>
						<div class="fui-icon-col external">
							<div class="badge"></div>
							<div class="icon icon-green radius"><i class="icon jinyunicon icon-caifua"></i></div>
							<div class="text">总业绩:{{pagedata.all_money||'0.00'}}元</div>
						</div>
						<div class="fui-icon-col external" href="javascript:;" ng-click="access_json('jy_meifa/worker_order/')">
							<div class="badge"></div>
							<div class="icon icon-green radius"><i class="icon jinyunicon icon-quanbudingdan"></i></div>
							<div class="text">总订单数:{{pagedata.all_num||'0'}}</div>
						</div>
		</div>
		<div class="weui_cells weui_cells_access">
            <a class="weui_cell" href="javascript:;" ng-click="access_json('jy_meifa/worker_order/')">
                <div class="weui_cell_hd"><i class="icon jinyunicon icon-quanbudingdan" style="font-size:0.9rem"></i></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <span>我的客户</span>
                </div>
                <div class="weui_cell_ft"></div>
            </a>
        </div>
		<div class="weui_cells weui_cells_access">
            <a class="weui_cell" href="javascript:;" >
                <div class="weui_cell_hd"><i class="icon jinyunicon icon-qrcode" style="font-size:0.9rem"></i></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <span>我的二维码</span>
                </div>
                <div class="weui_cell_ft"></div>
            </a>
        </div>
	</div>
</div>
</div>
<div ng-if="pagedata.op == 'ruzhu'">
<div class="fui-header">
		<div class="fui-header-left" onclick="window.history.go(-1);">
            <a class="back"></a>
        </div>
		<div class="title">申请入驻</div>
		<div class="fui-header-right"></div>
</div>
<div class="fui-list-group merchgroup" ng-click="" style="margin-top:58px">
				<div class="fui-list jump">
					<a class="fui-list-media" ng-if="pagedata.worker.headimg">
						<img class="round" src="{{tomedia(pagedata.worker.headimg) || '../core/resource/images/nopic.jpg'}}" />
					</a>
					<a class="fui-list-media weui_uploader_input_wrp">
						<input class="weui_uploader_input" ng-click="up_file(pagedata.worker,'headimg','image')" accept="image/jpg,image/jpeg,image/png,image/gif" multiple="">
					</a>
				</div>
</div>
<div class="weui_cells weui_cells_form">
			  <div class="weui_cell weui_vcode">
                <div class="weui_cell_hd"><label class="weui_label">姓名</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input class="weui_input" type="text" ng-model="pagedata.worker.name" placeholder="请输入您的真实姓名">
                </div>
            </div>
            <div class="weui_cell weui_vcode">
                <div class="weui_cell_hd"><label class="weui_label">手机</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input class="weui_input" type="text" ng-model="pagedata.worker.mobile" placeholder="请输入您的手机号码">
                </div>
            </div> 
			<div class="weui_cell">
                <div class="weui_cell_hd"><label for="" class="weui_label">上门地址</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input class="weui_input" ng-model="pagedata.worker.address" type="text" value="" placeholder="">
                </div>
                <div class="weui_cell_ft">
                    <i class="icon jinyunicon icon-ditu"></i>
                </div>
			</div>
			<div class="weui_cell weui_vcode">
                <div class="weui_cell_hd"><label class="weui_label">证件</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input class="weui_input" type="text" ng-model="pagedata.worker.zhengjian" placeholder="请输入您的身份证号码">
                </div>
            </div>
			<div class="weui_cell weui_vcode">
                <div class="weui_cell_hd"><label class="weui_label">年纪</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input class="weui_input" type="text" ng-model="pagedata.worker.age" placeholder="请输入您的年纪">
                </div>
            </div>
			<div class="weui_cell weui_vcode">
                <div class="weui_cell_hd"><label class="weui_label">从事年限</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input class="weui_input" type="text" ng-model="pagedata.worker.years" placeholder="请输入您的从事该行业服务年限">
                </div>
            </div>
			<div class="weui_cell weui_vcode">
                <div class="weui_cell_hd"><label class="weui_label">介绍自己</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input class="weui_input" type="text" ng-model="pagedata.worker.remark" placeholder="请输入您的介绍">
                </div>
            </div>
			
</div>
<div class="weui_btn_area">
		 <a class="weui_btn weui_btn_primary" href="javascript:" id="showTooltips" ng-click="post(pagedata.worker,'set')">提交</a>
</div>
</div>
<div ng-if="pagedata.op == 'check'">
	<div class="fui-content">
		<div id="carousel-container" class="carousel slide" data-role="carousel" data-param-auto="true" >
			<div class="carousel-inner" role="listbox" style="height:6rem">
				<div ng-class="{'item':1,'active':$index==0}" ng-repeat="item in pagedata.banner">
					<a href="#">
						<img src="{{tomedia(item.picurl) || '../core/resource/images/banner-1.jpg'}}" style="display: block; width: 100%; height: 100%;">
					</a>
				</div>
			</div>
			<style>
					.fui-swipe-page .fui-swipe-bullet {background: {background}; opacity: {opacity};}
					.fui-swipe-page .fui-swipe-bullet.active {opacity: 1;}
			</style>
			<div id="carousel-jinyun" class="fui-swipe-page" style="padding: 0 5px; bottom: 10px; ">
				<div class="fui-swipe-bullet" ng-repeat="item in pagedata.banner" ng-class="{'active':$index==0}" data-target="#carousel-container" data-slide-to="{{$index}}"></div>
			</div>
		</div>
		<div class="content-empty">
			  <i class="icon jinyunicon icon-cry" style="width: 6rem;margin-bottom: 0.5rem;"></i><br/><p style="color: #999;font-size: .75rem">您的入驻申请，还在审核中...</p>
		</div>
	</div>
</div>
<div ng-if="pagedata.op == 'set'">
<div class="fui-header">
		<div class="fui-header-left" onclick="window.history.go(-1);">
            <a class="back"></a>
        </div>
		<div class="title">个人设置</div>
		<div class="fui-header-right"></div>
</div>
<div class="fui-list-group merchgroup" style="margin-top:58px">
				<div class="fui-list jump">
					<a class="fui-list-media" ng-if="pagedata.worker.headimg">
						<img class="round" src="{{tomedia(pagedata.worker.headimg) || '../core/resource/images/nopic.jpg'}}" />
					</a>
					<a class="fui-list-media weui_uploader_input_wrp">
						<input class="weui_uploader_input" ng-click="up_file(pagedata.worker,'headimg','image')" accept="image/jpg,image/jpeg,image/png,image/gif" multiple="">
					</a>
				</div>
</div>
<div class="weui_cells weui_cells_form">
			  <div class="weui_cell weui_vcode">
                <div class="weui_cell_hd"><label class="weui_label">姓名</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input class="weui_input" type="text" ng-model="pagedata.worker.name" placeholder="请输入您的真实姓名">
                </div>
            </div>
            <div class="weui_cell weui_vcode">
                <div class="weui_cell_hd"><label class="weui_label">手机</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input class="weui_input" type="text" ng-model="pagedata.worker.mobile" placeholder="请输入您的手机号码">
                </div>
            </div> 
		<div class="weui_cell">
                <div class="weui_cell_hd"><label for="" class="weui_label">地址</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input class="weui_input" ng-model="pagedata.worker.address" type="text" value="" placeholder="">
                </div>
                <div class="weui_cell_ft">
                    <i class="icon jinyunicon icon-ditu"></i>
                </div>
        </div>
</div>
<div class="weui_btn_area">
		 <a class="weui_btn weui_btn_primary" href="javascript:" id="showTooltips" ng-click="post(pagedata.worker,'set')">提交</a>
</div>
</div>
<div ng-include="sys_html('common/pluginnav',true)"></div>
<script type="text/javascript">
window.scope.location(function(res){
		console.log(res)
		scope.$apply(function(){
			scope.pagedata.worker.address = res.address;
		});
});
</script>
<script>
	require(['bootstrap', 'hammer'], function($, Hammer){
		$('#carousel-container').carousel();
		var mc = new Hammer($('#carousel-container').get(0));
		mc.on("panleft", function(ev) {
			$('#carousel-container').carousel('next');
		});
		mc.on("panright", function(ev) {
			$('#carousel-container').carousel('prev');
		});
	});
</script>